<?php
class modules_default_forms_ProfileForm extends forms_FormBase
{
	/**
	 * Init
	 * @see Zend/Zend_Form#init()
	 */
	public function init()
	{
		$oEmailElement = new Zend_Form_Element_Text('email');
		$oEmailElement = $this->_initDefaultFiltersAndValidators($oEmailElement);
		$oEmailElement->addValidator(new Zend_Validate_EmailAddress());
		$this->addElement($oEmailElement);

		
		$oPasswordElement = new Zend_Form_Element_Password('password');
		$oPasswordElement->setRequired(true);
		$this->addElement($oPasswordElement);

		$oPasswordElement = new Zend_Form_Element_Password('new_password');
		$oPasswordElement->setRequired(false);
		$this->addElement($oPasswordElement);
		
		$oRePasswordElement = new Zend_Form_Element_Password('re_enter_password');
		$oRePasswordElement->addValidator(new Lemar_Validate_EqualInputs('new_password'));
		$oRePasswordElement->setRequired(false);
		$this->addElement($oRePasswordElement);
		
		$oFirstNameElement = new Zend_Form_Element_Text('first_name');
		$oFirstNameElement = $this->_initDefaultFiltersAndValidators($oFirstNameElement);
		$this->addElement($oFirstNameElement);

		$oLastNameElement = new Zend_Form_Element_Text('last_name');
		$oLastNameElement = $this->_initDefaultFiltersAndValidators($oLastNameElement);
		$this->addElement($oLastNameElement);
		
		$oProfessionAreasElement = new Zend_Form_Element_Text('profession_areas');
		$oProfessionAreasElement = $this->_initDefaultFiltersAndValidators($oProfessionAreasElement);
		$oProfessionAreasElement->setRequired(false);
		$this->addElement($oProfessionAreasElement);

		$oProfessionElement = new Zend_Form_Element_Text('profession');
		$oProfessionElement = $this->_initDefaultFiltersAndValidators($oProfessionElement);
		$oProfessionElement->setRequired(false);
		$this->addElement($oProfessionElement);
		
		$oCityElement = new Zend_Form_Element_Text('city');
		$oCityElement = $this->_initDefaultFiltersAndValidators($oCityElement);
		$oCityElement->setRequired(false);
		$this->addElement($oCityElement);
		
		$oStateElement = new Zend_Form_Element_Text('state');
		$oStateElement = $this->_initDefaultFiltersAndValidators($oStateElement);
		$oStateElement->setRequired(false);
		$this->addElement($oStateElement);
		
		$oZipElement = new Zend_Form_Element_Text('zip');
		$oZipElement = $this->_initDefaultFiltersAndValidators($oZipElement);
		$oZipElement->setRequired(false);
		$this->addElement($oZipElement);

		$oCountryElement = new Zend_Form_Element_Text('country');
		$oCountryElement = $this->_initDefaultFiltersAndValidators($oCountryElement);
		$oCountryElement->setRequired(false);
		$this->addElement($oCountryElement);
		
		$oPhoneElement = new Zend_Form_Element_Text('phone1');
		$oPhoneElement = $this->_initDefaultFiltersAndValidators($oPhoneElement);
		$oPhoneElement->setRequired(false);
		$oPhoneElement->addValidator(new Zend_Validate_Digits());
		$this->addElement($oPhoneElement);

		$oPhoneElement = new Zend_Form_Element_Text('phone2');
		$oPhoneElement = $this->_initDefaultFiltersAndValidators($oPhoneElement);
		$oPhoneElement->addValidator(new Zend_Validate_Digits());
		$oPhoneElement->setRequired(false);
		$this->addElement($oPhoneElement);

		$oPhoneElement = new Zend_Form_Element_Text('phone3');
		$oPhoneElement = $this->_initDefaultFiltersAndValidators($oPhoneElement);
		$oPhoneElement->setRequired(false);
		$oPhoneElement->addValidator(new Zend_Validate_Digits());
		$this->addElement($oPhoneElement);
		

	
	}
}